package com.gwd.task.repository;

import com.gwd.task.entity.TaskEntity;
import com.gwd.task.model.TaskDTO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhiyongming
 * @date 2020/11/9 9:52
 */
@Repository
public interface TaskRepository extends JpaRepository<TaskEntity, Long>, JpaSpecificationExecutor<TaskEntity> {
    List<TaskEntity> findByLv2ModuleIdIn(List<Long> ids);
    List<TaskEntity> findByDevPersonInAndStatusIsNotIn(List<Long> ids, List<Integer> status);
}
